<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app"></div>
</body>
<script src="../js/task1.js">
    //创建对象
    let st = new Object()
    //声明属性
    st.name = '朗晓明'
    st.age = 38
    st.job = '中国内地男演员，歌手'
    st.address = '中国北京北淀区'
    //声明函数
    st.toString = function () {
        return `姓名:${this.name}<br>年龄:${this.age}<br>职业:${this.job}<br>住址:${this.address}`
    }
    let info = st.toString()
    app.innerHTML = info
</script>

</html>